package com.apes.framework.util;

import java.util.Arrays;
import java.util.List;

/**
 * 功能：
 *
 * @author xuliang
 * @create 2018-02-04 17:14
 */
public class LogicalUtil {

    public static boolean in(Object source, Object... objects) {
        List<Object> list = Arrays.asList(objects);
        return list.contains(source);
    }

    public static boolean notIn(Object source, Object... objects) {
        return !in(source, objects);
    }
}
